package ru.kop4en.diplom.video;

import javax.swing.JButton;
import javax.swing.JPanel;

import ru.kop4en.diplom.main.MainWindow;

import java.awt.BorderLayout;

public class VideoPanel extends JPanel
{
	private static final long serialVersionUID = 1L;
	
	//=============================================================================
	public VideoPanel()
	{
		setLayout(new BorderLayout(0, 0));
		
		JButton btnVideo = new JButton("video");
		add(btnVideo, BorderLayout.CENTER);
		add(right_panel_, BorderLayout.EAST);
		add(left_panel_, BorderLayout.WEST);
	}
	
	//=============================================================================
	@Override
	public String getName()
	{
		return "Video";
	}

	//=============================================================================
	public void addWindowListener(MainWindow mainWindow)
	{
		right_panel_.addNextHandler(mainWindow);
		left_panel_.addPrevHandler(mainWindow);				
	}
	
	// members ===============================================
	private RightVideoPanel right_panel_ = new RightVideoPanel();
	private LeftVideoPanel left_panel_ = new LeftVideoPanel();
}
